home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7341 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.8 KB

  1. Path: redstone.interpath.net!mercury!softbase
  2. From: softbase@mercury.interpath.net (Scott McMahan - Softbase Systems)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Does Borland C++ 5.0 still work with normal C???
  5. Date: 25 Feb 1996 19:31:51 GMT
  6. Organization: Interpath -- Providing Internet access to North Carolina
  7. Message-ID: <4gqdf7$jfo@redstone.interpath.net>
  8. References: <n4mwd.33.000A228B@magg.net> <4gdkv3$q8a@druid.borland.com> <4ggsie$1fg@dopey.magg.net>
  9. NNTP-Posting-Host: mercury.interpath.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Dennis Hawkins (n4mwd@magg.net) wrote:
  13.  
  14. : printf("%ld\n", (long) sizeof 'a');
  15.  
  16. : and produce an EXE that generates '2' for the output.
  17.  
  18. How do you get two out of this? A char is 1, and casting that to a long
  19. is still 1, only it takes up more bytes. How can this evaluate to 2?
  20. sizeof char being 1 is kinda hard-wired into the language.
  21.  
  22. : I wonder if Borland will ever stop discriminating against C people.  I
  23. : mean, why can I not get the AppExpert to generate straight C code?
  24.  
  25. Why do you NEED AppExpert to generate straight C code? A Win32
  26. console mode program is trivial to generate in BC++, you don't
  27. need anything but the target whatchamacallit.
  28.  
  29. : I know I sound bitter, but thats only because I am.  I don't
  30. : appreciate having C++ rammed down my throat...
  31.  
  32. I've done a lot of C development in Borland's compiler/IDE. Works
  33. for me. ANSI C hasn't changed much since it was ratified and
  34. implemented, and there's not a whole lot more Borland can do
  35. with it.
  36.  
  37. : Does anybody else out there feel the same way I do about C and C++??
  38.  
  39. I've never gotten much out of C++, but then the main thing I've been
  40. working on the past 2 years is a cross-platform library to be used by
  41. multiple languages. This means standard OS linkage is a requirement,
  42. and it also means there's a lot of platforms we don't want to waste
  43. money on a C++ compiler. It also means the lowest common denominator
  44. in a lot of cases. This isn't a good place to use the evolving C++.
  45.  
  46. I think C++ has its uses on LARGE projects that can get deeply into the
  47. whole experience, the esoterica of the the OOP paradigm, but how many
  48. of these large projects are there? I imagine most projects are much
  49. smaller. I know I've read probably as much about OOP as anyone, lots
  50. and lots of C++ books, and I still don't really use any of it.
  51.  
  52. Actually Delphi is the first practical application of object
  53. orientation I've ever seen. OOP in it actually works.
  54. I've never been impressed with class libraries like OWL for
  55. Windows -- they don't really do anything but make matters
  56. more complex. The underlying C paradigm is easier to understnad.
  57.  
  58. If you code in a language a LOT, especially hard-core coding in C,
  59. you tend to start thinking in it. I did that in perl when I 
  60. used it over the space of a year to write something. I think in
  61. C now. It's really hard to think in C++ unless you use it all the
  62. time.
  63.  
  64. Scott
  65.  
  66.  
  67.